## 构建jdk8 镜像
FROM ubuntu AS jdk8
LABEL "author"="zhouyongyuan" "email"="1060017500@qq.com"
COPY tools/jdk-8u391-linux-x64.tar.gz /usr/local/
RUN tar -zvxf /usr/local/jdk-8u391-linux-x64.tar.gz -C /usr/local/
ENV JAVA_HOME /usr/local/jdk1.8.0_391
ENV JRE_HOME /usr/local/jdk1.8.0_391/jre
ENV PATH $JAVA_HOME/bin:$PATH



## 构建gateway镜像

FROM jdk8 AS gateway
COPY zyy-gateway/target/gateway.jar /usr/local/app.jar
EXPOSE 8000
CMD ["jar","-jar /usr/local/app.jar"]